import request from '@/utils/request'

// 查询新形经营主体家庭农场列表
export function listFamily_farm(query) {
  return request({
    url: '/report/family_farm/list',
    method: 'get',
    params: query
  })
}

// 查询新形经营主体家庭农场详细
export function getFamily_farm(id) {
  return request({
    url: '/report/family_farm/' + id,
    method: 'get'
  })
}

// 新增新形经营主体家庭农场
export function addFamily_farm(data) {
  return request({
    url: '/report/family_farm',
    method: 'post',
    data: data
  })
}

// 修改新形经营主体家庭农场
export function updateFamily_farm(data) {
  return request({
    url: '/report/family_farm',
    method: 'put',
    data: data
  })
}

// 删除新形经营主体家庭农场
export function delFamily_farm(id) {
  return request({
    url: '/report/family_farm/' + id,
    method: 'delete'
  })
}
